package com.zytlifeservice.repository.pay;

import com.zytlifeservice.domain.pay.FlowRechargeOrder;
import com.zytlifeservice.domain.pay.MobileRechargeOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 手机流量持久类
 * Created by Administrator on 2017/6/3.
 */
@Repository
public interface FlowRechargeOrderRepository extends JpaRepository<FlowRechargeOrder,Long> {

    public  FlowRechargeOrder findByOutTradeNo(String outTradeNo);//根据订单号查询充值信息

    public FlowRechargeOrder findByOutTradeNoAndUserId(String outTradeNo, Long userId);

    public List<FlowRechargeOrder> findAllByUserId(Long userId);

}
